package dmap

import (
    "sync"
    "context"
    "github.com/coreos/etcd/clientv3"
)

type RedisDistributeMap struct {
    mu         sync.RWMutex
    BaseName   string
    UID        string
    AllItems   map[string]string //value uid
    LocalItems map[string]bool
    cancel    context.CancelFunc
    //
    cli       *clientv3.Client
    endpoints []string
    ttl       int64
    leaseID   clientv3.LeaseID
    uname     string
    passwd    string

}